package com.class3;

import web.GetMsg;

public class login {
    public static void main(String[] args) throws InterruptedException {
        GetMsg msg=new GetMsg();
        msg.openBrowser("chrome");
        Thread.sleep(3000);
        msg.visitPage("http://www.testingedu.com.cn:8000");
        msg.clickButton("//*[text()='登录']");
        Thread.sleep(3000);
        msg.sendKeys("//input[@name='username']","1361051227@qq.com");
        msg.sendKeys("//input[@name='password']","msg1-12345");
        msg.sendKeys("","msg1-12345");
        msg.sendKeys("//input[@name='verify_code']","msge");
        msg.clickButton("//*[@name='sbtbutton']");
        //修改
        msg.clickButton("//*[text()='修改']");

    }
}


